import OrgTable from './orgTable.js'
import OrgNew from './orgNew.js'

import { useState } from 'react'
const Organization_management = () => { 
//显示哪个组件，1是表格，2是新增
const [state, setState] = useState(1)
let com
if (state == 1) {
  com = <OrgTable setState={setState}></OrgTable>
}
else {
  com = <OrgNew setState={setState}></OrgNew>
}
return <>
  {com}
</>
}

export default Organization_management